package com.harvey.guava.eventbus;

/**
 * @author Harvey
 * @create 2020-03-29 08:08
 **/

public class MyEvent {

    private String message;

    private String code;

    public MyEvent(String message, String code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String toString() {
        return "MyEvent{" +
                "message='" + message + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
